package com.bosssoft.enums;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author Aria
 */
@AllArgsConstructor
public enum EleSerCode implements FibEnums {

    SEAL_ID_NOT_FOUND(510, "印章编号未找到"),
    SEAL_RECODE_NOT_FOUND(511, "数据库未找到该印章"),
    SEAL__RECODE_IS_DELETED(512, "该印章已被禁用"),
    CREATEBY_NAME_NOT_FOUND(513, "创建人名字不能为空"),
    UPDATEBY_NAME_NOT_FOUND(514, "更新人名字不能为空"),
    SEAL_NOT_FOUND(515, "根据编号查找印章未找到"),

    SEAL_OR_DEPT_IS_NULL(520, "印章编号或者部门编号为空"),
    SEAL_DEPT_IS_HAVE(521, "该部门已拥有该印章"),
    SEAL_DEPT_NOT_FOUNDS(523, "记录未找到"),
    SEAL_DEPT_IS_DELETED(524, "记录已被禁用"),

    VOUCHER_CODE_ID_NOT_FOUND(530, "凭证编码未找到"),
    VOUCHER_RECODE_NOT_FOUND(531, "数据库未找到该条凭证"),
    VOUCHER__RECODE_IS_DELETED(532, "该凭证已被禁用"),
    VOUCHER_CANNOT_BE_ADD(533, "凭证不能被直接添加"),
    MONEY_CHANGE_ERROR(534, "您输入的金额有误,请重新输入"),
    VOUCHER_(534, "您输入的金额有误,请重新输入"),
    VOUCHER_ID_NOT_FOUND(535, "凭证编号未找到"),

    BANK_IS_NOT_FOUND(541, "账户找不到"),
    USER_IS_NOT_FOUND(542, "用户找不到"),

    VOUCHER_DETAILS_NOT_FOUND(551, "详细凭证记录未找到"),
    VOUCHER_DETAILS_ID_IS_NULL(551, "详细凭证记录未找到"),

    URL_IS_ERROR(561, "pdf路径异常"),
    BYTES_TO_MultipartFile_ERROR(562, "封装流成文件失败"),

    LOCATION_NO_FOUND(571, "凭证位置信息未找到"),
    LOCATION_ID_IS_NULL(572, "凭证位置记录编号不能为空"),

    END(599, "end");


    private int code;

    private String message;


    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
